<?php	 

class Auth extends Action{	

	public function __construct() {
		 $this->checklogin();
	}
	public function Config() {
		return _instance('Action/Config'); 
	}		
	//判断是登录过，如果没有就初始化值
	public function  checklogin(){
		if(empty($_SESSION["deskos"]["ischecklogin"])){
				$_SESSION["deskos"]["m_wallpaper_id"]=9;
				$_SESSION["deskos"]["dock"] ="11,12,21";
				$_SESSION["deskos"]["desk1"]=21;
				$_SESSION["deskos"]["desk2"]=21;
				$_SESSION["deskos"]["desk3"]=21;
				$_SESSION["deskos"]["desk4"]=21;
				$_SESSION["deskos"]["desk5"]=21;	
		}
	}	
}

?>
